.rpc-container {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.rpc-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.button-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .button-container {
    flex-direction: row;
  }
}

.rpc-button {
  flex: 1;
  padding: 12px 24px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rpc-button:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.rpc-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-regular {
  background-color: #3b82f6;
  color: white;
}

.button-regular:hover:not(:disabled) {
  background-color: #2563eb;
}

.button-regular:focus {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.button-streaming {
  background-color: #10b981;
  color: white;
}

.button-streaming:hover:not(:disabled) {
  background-color: #059669;
}

.button-streaming:focus {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.loading-spinner {
  animation: spin 1s linear infinite;
  margin: 0 8px;
  height: 20px;
  width: 20px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.messages-container {
  margin-top: 24px;
  background-color: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.messages-header {
  padding: 12px 16px;
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.messages-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0;
}

.messages-list {
  max-height: 400px;
  overflow-y: auto;
}

.message-item {
  padding: 16px;
  transition: background-color 0.15s ease-in-out;
  border-bottom: 1px solid #e5e7eb;
}

.message-item:hover {
  background-color: #f9fafb;
}

.message-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.message-icon-container {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-icon {
  width: 16px;
  height: 16px;
  color: #059669;
}

.message-text {
  flex: 1;
  min-width: 0;
}

.message-text p {
  margin: 0;
}

.message-main {
  font-size: 14px;
  color: #111827;
}

.message-number {
  font-size: 12px;
  color: #6b7280;
  margin-top: 4px;
}

.button-text {
  display: inline-flex;
  align-items: center;
}
